package test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class Main {

    public static int getResult(int n ) {
        int ans = 0;
        while (n > 2) {
            ans += n / 3;
            n = n / 3 + n % 3;
        }
        if (n == 2) ans ++;
        return ans;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] nums = new int[n];
        for (int i = 0; i < n; i++) {
            nums[i] = sc.nextInt();
        }
        Arrays.sort(nums);
        int pre = -1;
        for (int i = 0; i < n; i++) {
            if (nums[i] != pre) {
                System.out.println(nums[i]);
                pre = nums[i];
            }
        }
    }

}
